﻿using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;

namespace TCKQKL.Service.DataContract
{
    /// <summary>
    /// Holding keys for looking up information in other tables
    /// </summary>
    [DataContract()]
    public sealed class InvestorDataModel
    {
        private decimal _investorId;
        private string _accountNo;
        private string _bankAccount;

        public InvestorDataModel()
        {
        }

        public InvestorDataModel(decimal investorId, string accountNo, string bankAccount)
        {
            this._investorId = investorId;
            this._accountNo = accountNo;
            this._bankAccount = bankAccount;
        }

        [System.Xml.Serialization.XmlElementAttribute(ElementName = "investorId", Order = 1, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "investorId", Order = 1)]
        public decimal investorId
        {
            // Properties
            get { return _investorId; }
            set
            {
                this._investorId = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(ElementName = "accountNo", Order = 2, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "accountNo", Order = 2)]
        public string accountNo
        {
            // Properties
            get { return _accountNo; }
            set
            {
                this._accountNo = value;
            }
        }

        [System.Xml.Serialization.XmlElementAttribute(ElementName = "bankAccount", Order = 3, IsNullable = false)]
        [DataMember(IsRequired = false, Name = "bankAccount", Order = 3)]
        public string bankAccount
        {
            // Properties
            get { return _bankAccount; }
            set
            {
                this._bankAccount = value;
            }
        }

    }
}
